package soft.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import soft.mapper.ClassMapper;
import soft.pojo.Class;
import soft.service.ClassService;

import java.util.List;

@Service
public class ClassServiceImpl implements ClassService {
    @Autowired
    private ClassMapper classMapper;

    @Override
    public Class getById(String classId) {
        return classMapper.getById(classId);
    }

    @Override
    public boolean insert(Class bean) {
        return classMapper.insert(bean);
    }

    @Override
    public boolean update(Class bean) {
        return classMapper.update(bean);
    }

    @Override
    public List<Class> getList() {
        return classMapper.getList();
    }

    @Override
    public boolean delete(String classId) {
        return classMapper.delete(classId);
    }


}
